home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_eval9.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  662 b   |  54 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_EVAL9
  5.  
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      s: STRING;
  13.      c: CHARACTER;
  14.      i, value: INTEGER;
  15.       do
  16.      c := 'a';
  17.      check
  18.         c /= 'b'
  19.      end;
  20.      s := "foo";
  21.      c := s.first;
  22.      check 
  23.         s.count = 3;
  24.         c = 'f';
  25.      end;
  26.      value := s.count;
  27.      check
  28.         value = 3;
  29.         value = s.count;
  30.      end;
  31.      value := 6;
  32.      check
  33.         value = 6
  34.      end;
  35.      s.clear;
  36.      check
  37.         s.count = 0
  38.      end;
  39.  
  40.      s := "oo";
  41.      s.extend('f');
  42.      check
  43.         s.count = 3;
  44.      end;
  45.  
  46.      check
  47.         4 >= 3
  48.      end;
  49.      
  50.       end;
  51.  
  52. end -- TEST_EVAL9
  53.  
  54.